package com.gnerv.plugin.controller;

import com.gnerv.plugin.mapper.DependencyMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@CrossOrigin
@RestController
@RequestMapping(value = "/plugin/maven")
public class MavenPomController {

    @Resource
    DependencyMapper dependencyMapper;

    @RequestMapping(value = "list", method = RequestMethod.GET)
    public Object getString(){
        return dependencyMapper.queryDependency();
    }

}
